﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="news" %>

<%@ Register Src="UserControl/newsLeft.ascx" TagName="NewsLeft" TagPrefix="uc1" %>
<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="Indown-01">
  <uc1:NewsLeft ID="newsLeft" runat="server" />
  <h1><asp:Literal ID="ltlTitle" runat="server"></asp:Literal></h1>
  <div class="In-iframe">     
      <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <div class="News-Day">
                    <asp:Literal ID="ltlShowDate" runat="server" Text='<%# Eval("ShowDate","{0:yyyy.MM.dd}") %>'></asp:Literal></div>
      <div class="News-title"><a href="<%#String.Format("news_in.aspx?id={0}", DataBinder.Eval(Container,"DataItem.PostId"))%>" class="Btn-white">
          <asp:Literal ID="ltlTitle" runat="server" Text='<%# Bind("Title") %>'></asp:Literal></a></div>
            </ItemTemplate>
            </asp:Repeater>
<ul id="PageNumber">            
              <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="PageNumber" HorizontalAlign="center"
                    OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="15"
                    ShowPageIndexBox="Never" ShowFirstLast="false" PrevPageText="<li class='PageNumber-li'>上一頁</li>" NextPageText="<li class='PageNumber-li'>下一頁</li>" NumericButtonTextFormatString="<li class='PageNumber-li'>{0}</li>" />
          </ul>
  </div>
</div>
</asp:Content>

